import React, { useEffect, useRef, useState, useMemo } from 'react';
import { AssetacquisitionManageAPI } from '../common/type';
import { Col } from 'antd';
import { ContractHomeView } from './HomeContract/mview/ContractHomeView';
import { connect } from 'umi';

const AssetAcquisitionManageView: React.FC<AssetacquisitionManageAPI.IMaterialManageView> = ({ curRes }) => {
  const styleFixCls = 'contract-homepage-';
  return (
    <>
      <Col span={24} className={styleFixCls + 'RootDiv-ColSpanA'}>
        <ContractHomeView curRes={curRes} />
      </Col>
    </>
  );
};

export default connect(({ baseLogin, navTab }: Record<string, any>) => ({
  curRes: baseLogin?.permissions,
  navTab,
}))(AssetAcquisitionManageView);
